import axios, {AxiosResponse} from 'axios';

const baseURL = 'http://localhost:8080'

interface User {
    name: string;
    age: number
}
let myuser:User = {
    name: '战三',
    age: 10
}
axios({
    url: baseURL+'/get',
    method: 'get',
    params: myuser 
}).then((res: AxiosResponse) => {
    console.log(res.data)
}).catch(err => {
    console.log(err)
})